bannerAllocation.x2 = Math.floor(centerX - centerGap / 2);
bannerAllocation.x1 = Math.floor(bannerAllocation.x2 - wideBannerWidth);
- // figure out how tall it would like to be and try to accomodate
+ // figure out how tall it would like to be and try to accommodate
// but don't let it get too close to the logo
let [wideMinHeight, wideBannerHeight] = this._bannerView.get_preferred_height(wideBannerWidth);
this._refilterApps();
}
- // Overriden from BaseAppView
+ // Overridden from BaseAppView
animate(animationDirection, onComplete) {
this._scrollView.reactive = false;
let completionFunc = () => {
Util.ensureActorVisibleInScrollView(this.actor, actor);
}
- // Overriden from BaseAppView
+ // Overridden from BaseAppView
animate(animationDirection) {
this._grid.animatePulse(animationDirection);
}
let contentBox = this.actor.get_theme_node().get_content_box(pageBox);
// We only can show icons inside the collection view boxPointer
- // so we have to substract the required padding etc of the boxpointer
+ // so we have to subtract the required padding etc of the boxpointer
return [(contentBox.x2 - contentBox.x1) - 2 * this._offsetForEachSide, (contentBox.y2 - contentBox.y1) - 2 * this._offsetForEachSide];
}
if (this._client.is_handling_channel(this._channel)) {
// We are handling the channel, try to pass it to Empathy or Polari
// (depending on the channel type)
- // We don't check if either app is availble - mission control will
+ // We don't check if either app is available - mission control will
// fallback to something else if activation fails
let target;
favPos++;
}
- // No drag placeholder means we don't wan't to favorite the app
+ // No drag placeholder means we don't want to favorite the app
// and we are dragging it to its original position
if (!this._dragPlaceholder)
return true;
}
}
- // Overriden from IconGrid
+ // Overridden from IconGrid
_getChildrenToAnimate() {
let children = this._getVisibleChildren();
let firstIndex = this._childrenPerPage * this.currentPage;
/**
* getContrast:
- * Retreive the contrast of the magnified view.
+ * Retrieve the contrast of the magnified view.
* @return Object containing the contrast for the red, green,
* and blue channels.
*/
* initialization as well, under the assumption that new actors
* will need it.
*
- * Returns: A string work identifer
+ * Returns: A string work identifier
*/
function initializeDeferredWork(actor, callback, props) {
// Turn into a string so we can use as an object property
// can be dismissed by a close call.
//
// The main point of this method is to give some indication to the user
- // that the dialog reponse has been acknowledged but will take a few
+ // that the dialog response has been acknowledged but will take a few
// moments before being processed.
// e.g., if a user clicked "Log Out" then the dialog should go away
- // imediately, but the lightbox should remain until the logout is
+ // immediately, but the lightbox should remain until the logout is
// complete.
_fadeOutDialog(timestamp) {
if (this.state == State.CLOSED || this.state == State.CLOSING)
if (!this._connectionValid(connection))
return;
- // This function is called everytime connection is added or updated
+ // This function is called every time the connection is added or updated.
// In the usual case, we already added this connection and UUID
// didn't change. So we need to check if we already have an item,
// and update it for properties in the connection that changed
// (the only one we care about is the name)
// But it's also possible we didn't know about this connection
// (eg, during coldplug, or because it was updated and suddenly
- // it's valid for this device), in which case we add a new item
+ // it's valid for this device), in which case we add a new item.
let item = this._connectionItems.get(connection.get_uuid());
if (item)
// Tweener to a Clutter.TimeLine. Now, Clutter.Timeline itself isn't a
// whole lot more sophisticated than a simple timeout at a fixed frame
// rate, but at least it knows how to drop frames. (See
-// HippoAnimationManager for a more sophisticated view of continous
+// HippoAnimationManager for a more sophisticated view of continuous
// time updates; even better is to pay attention to the vertical
// vblank and sync to that when possible.)
//
{ x_fill: true,
y_fill: true });
- /* Translators: this and the following message should be limited in lenght,
+ /* Translators: this and the following message should be limited in length,
to avoid ellipsizing the labels.
*/
this._cancelButton = this.addButton({ label: _("Revert Settings"),
}
// Computes and returns an individual scaling factor for @window,
- // to be applied in addition to the overal layout scale.
+ // to be applied in addition to the overall layout scale.
_computeWindowScale(window) {
// Since we align windows next to each other, the height of the
// thumbnails is much more important to preserve than the width of
}
// We will reposition windows anyway when enter again overview or when ending the windows
- // animations whith fade animation.
+ // animations with fade animation.
// In this way we avoid unwanted animations of windows repositioning while
// animating overview.
if (this.leavingOverview || this._animatingWindowsFade)
// Win win -- better scale and better space
return true;
} else if (newLayout.scale > oldLayout.scale && newLayout.space <= oldLayout.space) {
- // Keep new layout only if scale gain outweights aspect space loss
+ // Keep new layout only if scale gain outweighs aspect space loss
return scalePower > spacePower;
} else if (newLayout.scale <= oldLayout.scale && newLayout.space > oldLayout.space) {
- // Keep new layout only if aspect space gain outweights scale loss
+ // Keep new layout only if aspect space gain outweighs scale loss
return spacePower > scalePower;
} else {
// Lose -- worse scale and space
this._animating = false; // tweening
this._scrolling = false; // swipe-scrolling
this._gestureActive = false; // touch(pad) gestures
- this._animatingScroll = false; // programatically updating the adjustment
+ this._animatingScroll = false; // programmatically updating the adjustment
let activeWorkspaceIndex = workspaceManager.get_active_workspace_index();
this.scrollAdjustment = new St.Adjustment({ value: activeWorkspaceIndex,
label = g_value_get_string (value);
g_return_val_if_fail (label != NULL, NULL);
- /* Stripped label will have the original label lenght at most */
+ /* Stripped label will have the original label length at most */
stripped_label = temp = g_new (gchar, strlen(label) + 1);
g_assert (stripped_label != NULL);